<?php
include("../db_connect.php");
include("../class/objName.php");

$ob = new objName();
$id = $_GET['codeId'];
$code = $_GET['code'];
//$name = $ob->get_profile_name($id);
//$o = get_vcode($id,$code);
if( $ob->get_vcode($id,$code) ){
	$sql = "UPDATE tbl_account SET isaprove= '1' WHERE id = ".$id." "; 
	mysql_query($sql);
	if(mysql_affected_rows() ){
		echo true;
	}
	else{
		echo $sql;
	}

}
else{
	echo false;
}


?>